package com.lnking.lnkingplace.model.request.record.train;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class TrainAddRequest {

    @ApiModelProperty("场所名称")
    @NotBlank(message = "场所名称不能为空")
    @NotNull(message = "场所名称不能为空")
    private String placeName;

    @ApiModelProperty(value = "培训人")
    private String teacher;

    @ApiModelProperty(value = "被培训人")
    private String trainee;

    @ApiModelProperty(value = "被培训人岗位")
    private String traineePost;

    @ApiModelProperty(value = "培训时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime trainTime;

    @ApiModelProperty(value = "培训内容")
    private String content;

    @ApiModelProperty(value = "考核结果")
    private String assess;
}
